package com.wl.ms.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wl.ms.seckill.entity.Stock;

/**
 * @author wanlei
 * @since 2021/9/24
 */
public interface StockService extends IService<Stock> {
    Stock getStockById(int sid);

    int updateStockByOptimistic(Stock stock);
}
